#!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
@Project ：back 
@File    ：job_contact_dao.py
@IDE     ：PyCharm 
@Author  ：七分是你
@Date    ：2024/6/29 下午2:46 
@explain : 
"""
from app.dao.models import XlxJobContact
from . import tools
from .base_dao import getDatabaseSession


class JobContactQueryDao(object):
    @classmethod
    def find(cls, **kwargs) -> XlxJobContact:
        with getDatabaseSession() as session:
            query = session.query(XlxJobContact)
            query = tools.build_query(query, XlxJobContact, **kwargs)
            results = query.first()
        return results
